package com.hq.fxh.No5_User.User.Adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.ArrayList;

/**
 * /**
 *
 * @author 薛
 * @ClassName
 * @Description :
 * @Created 2017/9/15
 * @Email xlwenhao1858@sina.com
 */


public class PAdapter_MyGZ extends FragmentStatePagerAdapter {
    ArrayList<Fragment> datas;

    public void setDatas(ArrayList<Fragment> datas) {
        this.datas = datas;
    }

    public PAdapter_MyGZ(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return datas == null ? null : datas.get(position);
    }

    @Override
    public int getCount() {
        return datas == null ? 0 : datas.size();
    }
}
